import {
	defineStore
} from 'pinia';

const useUserStore = defineStore('userInfo', () => {
	const info = ref({});
	const count = ref(0);

	function setInfo(data) {
		data = data || {}
		info.value = data;
	}
	
	function increment() {
	    count.value++;
	}
	return {
		info,
		count,
		setInfo,
		increment
	};
});

export {
	useUserStore
}